﻿@{
    ViewBag.Title = "FareFamilyDescription";
}
@model IEnumerable<AirLine.Entities.TicketClass>
<link href="~/Content/PriceTable/css/styles.css" rel="stylesheet" />
<div class="wrapper pad1">
    <ul class="breadcrumb" style="margin-left:37px">
        <li><a href="@Url.Action("Index","Home")">Home</a> <span class="divider">/</span></li>
        <li><a href="@Url.Action("Index")">Book</a> <span class="divider">/</span></li>
        <li class="active">Fare Types and Rules</li>
    </ul>
    <article class="col1">
	    <div class="box1" style="box-shadow: 0 0 3px #373737;">
		   <ul class="nav nav-list">
                <li class="nav-header">Fare Types and Rules</li>
                <li class="active"><a href="@Url.Action("FareFamilyDescription")">Fare Types and Rules</a></li>
                <li><a href="@Url.Action("FareFamilyDescription")">Fare Types and Rules</a></li>
              </ul> 
		</div>
        <a href="/Book"><img style="margin: 20px 50px auto" src="~/Content/Service/BookYourTripImage.jpg" /></a>
	</article>
<article class="col2">    
    @foreach (var item in Model)
    {
       <div class="price_table">
        <div class="title">@item.Name</div>
        <div class="price">
            <p class="number">@item.Price @item.Currency</p>
            <p class="maximum_stay">@item.MaximumStay Months</p>
            <p class="maximum_stay">GLP Accrual Rates @item.GLPAccrualRates</p>
        </div>
        <ul class="style_2">
            <li><span class="@(item.IsCancel.Value ? "option" : "no-option")">Cancle</span></li>
            <li><span class="detail">Before: @item.CancelBeforeDepartureCost USD</span></li>    
            <li><span class="detail">After: @item.CancelAfterDepartureCost USD</span></li>    
            <li><span class="@(item.IsUpgradeClass.Value ? "option" : "no-option")">Upgrade Class</span></li>
            <li><span class="detail">Before: @item.UpgradeClassBeforeDeparture USD</span></li>
            <li><span class="@(item.IsChangeTrip.Value ? "option" : "no-option")">Change Trip</span></li>
            <li><span class="detail">Before: @item.ChangeTripBeforeDepartureCost USD</span></li>    
            <li><span class="detail">After: @item.ChangeTripAfterDepartureCost USD</span></li>            
        </ul>
    </div> 
    }
</article>
</div>
